﻿#include "Work.h"
#include <memory>
using namespace std;

int main(int argc, char *argv[])
{
    //紧急项目
    shared_ptr<Work> emergencyProjects(new Work());
    emergencyProjects->setHour(9);
    emergencyProjects->WriteProgram();
    emergencyProjects->setHour(10);
    emergencyProjects->WriteProgram();
    emergencyProjects->setHour(12);
    emergencyProjects->WriteProgram();
    emergencyProjects->setHour(13);
    emergencyProjects->WriteProgram();
    emergencyProjects->setHour(14);
    emergencyProjects->WriteProgram();
    emergencyProjects->setHour(17);

    emergencyProjects->setFinish(false);

    emergencyProjects->WriteProgram();
    emergencyProjects->setHour(19);
    emergencyProjects->WriteProgram();
    emergencyProjects->setHour(22);
    emergencyProjects->WriteProgram();

    return 0;
}
